<g:hiddenField name="dataDeVencimento" value="${pagamentoInstance?.dataDeVencimento}"  />
<g:hiddenField id="movimentacao" name="movimentacao.id" value="${pagamentoInstance?.movimentacao?.id}"/>


<g:if test="${pagamentoInstance?.valor}">
<g:hiddenField name="valor" value="${pagamentoInstance?.valor}"/>
</g:if>
<g:else>
<div class="control-group" >
    <label  class="control-label" for="valor">
        <g:message code="pagamento.valor.label" default="Valor" />
        <span class="required-indicator">*</span>
    </label> 
 	<div class="controls"> 
        <g:textField name="valor" value="${pagamentoInstance?.valor}" required=""/>
    </div> 
</div>
</g:else>
                                
<div class="control-group" >
   <label  class="control-label" for="dataDePagamento">
      <g:message code="pagamento.dataDePagamento.label" default="Data De Pagamento" />
      <span class="required-indicator">*</span>
   </label> 
   <div class="controls"> 
      <g:datePicker name="dataDePagamento" precision="day"  value="${pagamentoInstance?.dataDePagamento}"  />
   </div> 
</div>
<div class="control-group" >
    <label  class="control-label" for="multa">
        <g:message code="pagamento.multa.label" default="Multa" />
    </label> 
    <div class="controls"> 
        <g:textField class="span2" name="multa" value="${pagamentoInstance?.multa}" />
    </div>
</div>
<div class="control-group" >
    <label  class="control-label" for="desconto">
        <g:message code="pagamento.desconto.label" default="Desconto" />
    </label> 
    <div class="controls"> 
        <g:textField name="desconto" class="span2" value="${pagamentoInstance?.desconto}" />
    </div> 
 </div>
 <div class="control-group" >
     <label  class="control-label" for="usuario">
         <g:message code="pagamento.usuario.label" default="Usuario" />
         <span class="required-indicator">*</span>
     </label>
     <div class="controls">
        ${session?.usuario?.login?.encodeAsHTML()}
     </div>
 </div>
